package com.wwj.server.control.msg;

import com.google.gson.annotations.SerializedName;
import com.wwj.server.control.common.MsgConstants;
import com.wwj.server.model.NetBaseMsg;

public class GameServerGameResultMsg extends NetBaseMsg {

    private String type = MsgConstants.GAME_SERVER_GAME_RESULT;

    @SerializedName("device_id")
    private String deviceId;

    @SerializedName("user_id")
    private String userId;

    private String key;

    private String result;//"Y"抓取成功，"N"抓取失败

    public GameServerGameResultMsg() {
    }

    public GameServerGameResultMsg(DeviceGameResultMsg deviceGameResultMsg) {
        this.result = deviceGameResultMsg.getResult();
        this.deviceId = deviceGameResultMsg.getDeviceId();
        this.userId = deviceGameResultMsg.getUserId();
        this.key = deviceGameResultMsg.getKey();
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }
}
